{include file="public/hunanconstr_meta" /}
<link href="__PUBLIC_ADMIN__css/plugins/footable/footable.core.css" rel="stylesheet">
<style>
#huiedit{
    background-color: #1ab394;
    color: #FFFFFF;
}
#huidel{
    background-color: #ed5565;
    color: #FFFFFF;
}
#hui{
     width: 50px;
        height: 50px;
}
</style>
</head>

<body class="gray-bg">
   <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                    <a href="{:url('admin/Meetings/hotelDownload')}" id="huiedit" class="btn btn-white btn-sx">酒店安排导出 </a>

                    <form  class="staffFile" action="{:url('admin/Meetings/inserHotel')}" enctype="multipart/form-data" method="post" style="margin-right: 25px; float: left;"> 
                                <input type="file" name="file_stu" class="importStaffFile" style="float: left; display: none" />
                                <button type="button" class="btn btn-primary importStaff" style="float: left;" >酒店安排导入</button>
                            </form>
                    </div>
                    <div class="ibox-content">
                        <div class="row m-b-sm m-t-sm">
                            <div class="col-md-1">
                                <button type="button" id="loading-example-btn" class="btn btn-white btn-sm refresh" ><i class="fa fa-refresh"></i> 刷新</button>
                            </div>
                             <div class="col-md-11">
                            <form method="get" action=""> 
                                <div class="input-group">
                                    <input placeholder="请输入用户名称" name="name" class="input-sm form-control" type="text"> <span class="input-group-btn">
                                        <button type="submit" class="btn btn-sm btn-primary"> 搜索</button> </span>
                                </div>
                            </form>
                            </div> 
                        </div>

                        <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="50" data-filter=#filter>
                            <thead>
                                    <tr>
                                        <th>序列</th>
                                        <th>会议名称</th>
                                        <th>嘉宾姓名</th>
                                        <th>性别</th>
                                        <th>单位</th>
                                        <th>身份证号码</th>
                                        <th>手机号</th>
                                        <th>来程日期</th>
                                        <th>回程日期</th>
                                        <th>入住房型</th>
                                        <th>酒店安排</th>
                                        <th>酒店房号</th>
                                        <th>备注</th>
                                        <th>创建时间</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {foreach name="res" id="vo" key="key"}
                                    <tr class="gradeX">
                                        <td>{$key+1}</td>
                                        <td>{$vo.title}</td>
                                        <td>{$vo.name}</td>
                                        <td>
                                        {if condition="$vo.gender eq 1"}
                                       	 男
                                       	{else}
                                                                                                     女
                                        {/if}
                                        </td>
                                        <td>{$vo.company}</td>
                                        <td>{$vo.id_card}</td>
                                        <td>{$vo.mobile}</td>
                                        <td>{$vo.go_date}</td>
                                        <td>{$vo.return_date}</td>
                                        <td>{$vo.type_name}</td>
                                        <td>{$vo.hotel_name}</td>
                                        <td>{$vo.number}</td>
                                        <td>{$vo.comment}</td>
                                        <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                                        <td>
                                            <a href="{:url('admin/Meetings/hotelArrangeEdit',['id'=>$vo.id])}" id="huiedit" class="btn btn-white btn-sm">安排酒店</a>
                                            <!--  <a href="{:url('admin/Meetings/housingDownload')}" id="huiedit" class="btn btn-white btn-sm">打印 </a>-->
                                        </td>
                                    </tr>
                                    {/foreach}
                                </tbody>
                                <tfoot hidden="hidden">
                                    <tr>
                                        <td colspan="5">
                                            <ul class="pagination pull-right"></ul>
                                        </td>
                                    </tr>
                                </tfoot>   
                        </table>
                        <div class="item-page" style="padding-left:36%;">
                        
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
        
    {include file="public/_footer" /}
    <script src="__PUBLIC_ADMIN__js/plugins/footable/footable.all.min.js"></script>
    
    <!-- 自定义js -->
    <script src="__PUBLIC_ADMIN__js/content.js?v=1.0.0"></script>
    <script>
        $(document).ready(function() {
            $('.footable').footable();
            $('.footable2').footable();
            
            $('.refresh').click(function(){
                window.location.reload();   // 刷新页面
            })
            
            //iframe窗
            $('.edit').click(function(){
                var url = $(this).attr('data-url');
                var index = layer.open({
                    type : 2,
                    fixed: true,
                    scrollbar: false,
                    title : '编辑',
                    shadeClose : false,
                    maxmin : true, //开启最大化最小化按钮
                    area : ['893px', '600px'],
                    //offset: '100px',
                    content : url
                });
                layer.full(index);
            })
        });
    </script>
    <script>
        $(document).ready(function(){
            $(".importStaff").click(function(){
                $('.importStaffFile').trigger("click"); 
            })
            
            $(".importStaffFile").change(function(){
              $(".staffFile").submit()
            });
        })
    </script>    
</body>
</html>
